export default {
  data () {
    return {
      dialogVisible: false,
      type: 'view' // 打开对话框类型
    }
  },
  mounted () {
    this.$refs.crud.onLoad()
  },
  methods: {
    openDialog (type) {
      this.dialogVisible = true;
      this.type = type;
    },
    closeDialog () {
      console.log('close')
      this.dialogVisible = false;
    }
  }
}